package onlinecalsys.client.view;

import java.rmi.RemoteException;

import onlinecalsys.client.controller.CalsysClientController;
import onlinecalsys.client.controller.ClientController;

public class UsernameValidation {
	
	private ClientController con;
	
	public UsernameValidation() {
		try {
			con = new CalsysClientController(null);
		} catch (RemoteException e) {
			e.printStackTrace();
		}

		
	}
	
	public boolean isValidUsernamePasswordCombination(String username, String password) throws RemoteException {
		return con.usernameChecking(username, password);
	}

	public boolean createNewUser(String username, String password) throws RemoteException {
		return con.createNewUser(username, password);
	}

}
